Optimal. Leaf size=101 \[ \frac{\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-1}}{c f \left (4 m^2+8 m+3\right )}+\frac{\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.134702, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {2743, 2742} \[ \frac{\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-1}}{c f \left (4 m^2+8 m+3\right )}+\frac{\cos (e+f x) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2}}{f (2 m+3)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2743
Rule 2742
Rubi steps
\begin{align*} \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m} \, dx &=\frac{\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m}}{f (3+2 m)}+\frac{\int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-1-m} \, dx}{c (3+2 m)}\\ &=\frac{\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-2-m}}{f (3+2 m)}+\frac{\cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{-1-m}}{c f \left (3+8 m+4 m^2\right )}\\ \end{align*}
Mathematica [A] time = 3.12659, size = 136, normalized size = 1.35 \[ -\frac{2^{-m} \cos \left (\frac{1}{2} \left (-e-f x+\frac{\pi }{2}\right )\right ) \sin ^{-2 m-3}\left (\frac{1}{2} \left (-e-f x+\frac{\pi }{2}\right )\right ) (\sin (e+f x)-2 (m+1)) (a \sin (e+f x)+a)^m (c-c \sin (e+f x))^{-m-2} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )^{-2 (-m-2)}}{f \left (8 m^2+16 m+6\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.298, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m} \left ( c-c\sin \left ( fx+e \right ) \right ) ^{-2-m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.14477, size = 178, normalized size = 1.76 \begin{align*} \frac{{\left (2 \,{\left (m + 1\right )} \cos \left (f x + e\right ) - \cos \left (f x + e\right ) \sin \left (f x + e\right )\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}}{4 \, f m^{2} + 8 \, f m + 3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{-m - 2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]